<?php


class CardKey
{
    private $key = "";
    private $time = 0;
    private $uid = 0;

    public function __construct($key = "", $time = 0,$uid = 0)
    {
        $this->key = $key;
        $this->time = $time;
        $this->uid = $uid;
    }

    /**
     * @return string
     */
    public function getKey(): string
    {
        return $this->key;
    }

    /**
     * @param string $key
     */
    public function setKey(string $key)
    {
        $this->key = $key;
    }

    /**
     * @return int
     */
    public function getTime(): int
    {
        return $this->time;
    }

    /**
     * @param int $time
     */
    public function setTime(int $time)
    {
        $this->time = $time;
    }

    public function plusTime($t)
    {
        $this->time += $t;
    }

    /**
     * @return int
     */
    public function getUid(): int
    {
        return $this->uid;
    }

    /**
     * @param int $uid
     */
    public function setUid(int $uid)
    {
        $this->uid = $uid;
    }
}